<template>
    <div class="home">
        我方
        <van-button type="primary">主要按钮</van-button>
         <!-- <ul>
            <li v-for="item, index in list" :key="index">
                <p>{{ item.title }}</p>
                <img :src="item.img_src" alt="">
            </li>
        </ul> -->
        <ul>
            <li v-for="v, index in list"  :key="index">
             {{ v.categories_title }}
            </li>
        </ul>
    </div>
</template>

<script>
export default{
    data(){
        return {
            list:[]
        }
    },
    async created(){
        
      let res = await this.$http.home.getHome()
       this.list=res
       console.log(this.list)
    }
}
</script>

<style  scoped lang="less">
ul{
    li{
        color: red;
    }
}
</style>